<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">操作权限</h1>
</div>



<div class="wrapper-md"  >
<div class="panel panel-default">
  <div ng-controller="infoEditCtrl">
    <div class="row">
    
      <div class="col-sm-12" >
        <form name="form-contact" ng-submit="processForm()" class="form-horizontal">

            <div class="panel-heading">
              <span class="h4">

<button class="btn btn-default btn-sm " ng-click="goBack()"><i class="fa fa-mail-reply fa-lg"></i>&nbsp; 返回</button>


              </span>
            </div>
        
                 <div class="panel-body">

     <p class="text-muted"><span class="label label-info">{{name}}操作权限信息</span></p>    
           




   <div class="form-group">
    <label class="col-sm-2 control-label">增加（上传/采集）</label>
    <div class="col-sm-1">
 <label class="i-switch m-t-xs m-r">
              <input type="checkbox" checked>
              <i></i>
            </label>
    </div>

       <label class="col-sm-2 control-label">查询（播放）</label>
    <div class="col-sm-1">
 <label class="i-switch m-t-xs m-r">
              <input type="checkbox" checked>
              <i></i>
            </label>
    </div>

  <label class="col-sm-2 control-label">更新</label>
    <div class="col-sm-1">
 <label class="i-switch m-t-xs m-r">
              <input type="checkbox" checked>
              <i></i>
            </label>
    </div>

      <label class="col-sm-2 control-label">删除</label>
    <div class="col-sm-1">
 <label class="i-switch m-t-xs m-r">
              <input type="checkbox" checked>
              <i></i>
            </label>
    </div>


    


  </div>



  <!--隐藏字段-->
<input type="hidden"  ng-model="contact.Id"  >
<input type="hidden"  ng-model="contact.UserId"  >
<input type="hidden"  ng-model="contact.AccessToken"  >
<input type="hidden"  ng-model="contact.UserInterest"  >
<input type="hidden"  ng-model="contact.UserRecentBrowse"  >
<input type="hidden"  ng-model="contact.UserLoginCount"  >
<input type="hidden"  ng-model="contact.AutoAudit"  >
<input type="hidden"  ng-model="contact.UserIsDiaplay"  >
<input type="hidden"  ng-model="contact.UserDisplayOrder"  >
<input type="hidden"  ng-model="contact.AccountId"  >
<input type="hidden"  ng-model="contact.AdderId"  >
<input type="hidden"  ng-model="contact.AdderName"  >
<input type="hidden"  ng-model="contact.AddTime"  >
<input type="hidden"  ng-model="contact.LastLoginTime"  >
<input type="hidden"  ng-model="contact.LastLoginIp"  >
<input type="hidden"  ng-model="contact.UpdaterId"  >
<input type="hidden"  ng-model="contact.UpdaterName"  >
<input type="hidden"  ng-model="contact.UpdateTime"  >
<input type="hidden"  ng-model="contact.DelFlag"  >

    <!--隐藏字段-->




            </div>


            <footer class="panel-footer text-right bg-light lter">
              <button type="submit" class="btn btn-success">提交</button>
            </footer>
          </div>
        </form>
      </div>
    </div>
   
</div>
</div>




</div>


<!--angularjs-->
<script type="text/javascript">
  'use strict';
app.controller('infoEditCtrl', function ($scope, $state, $stateParams,$http,$window) {

//返回按钮：开始
$scope.$window = $window;
    $scope.goBack = function() {
      $window.history.back();
    };
//返回按钮：结束
   var infoId = $stateParams.infoId;

    var type = $stateParams.type;
    if(type==1){
      $scope.name = '用户分类';
    }else{
      $scope.name = '用户名称';
    }







 //如果infoId不为空，查询详情：开始
  if(''!=infoId){
      var getInfoUrl = API_URL+"user_operation_privilege?query=delflag:0,userId:"+infoId+"&sortby=updateTime&order=desc"    

    $http.get(getInfoUrl).success(function (response) {
         var obj = response[0];
     $scope.contact = obj;
      });
  }
//如果infoId不为空，查询详情：结束




  //表单提交开始
$scope.processForm= function (){
  //1.参数处理
  //2.成功跳转页面
     $state.go('app.user.user');
}
 //表单提交结束
 

});
</script>
<!--angularjs-->










